<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        [v-cloak]{
            display: none;
        }
    </style>
</head>
<body>
    <div id="app">
        <input type="text"  v-model='value' placeholder="请输入">
        {{value}}
        <br>
        男：
        <input type="radio" v-model='sex' value="男">
        女：
        <input type="radio" v-model='sex' value="女">
        {{sex}}
        <br>
        爱好：
        <br>
        狗：<input type="checkbox" value="狗" v-model='list'> 

        猫：<input type="checkbox" value="猫" v-model='list'>
        猪：<input type="checkbox" value="猪" v-model='list'>
        {{list}}
    </div>
</body>
<script src="./vue.js"></script>
<script>
    const vm=new Vue({
        el:'#app',
        data:{
            value:'',
            sex:'男',
            list:[]
        }
    })
</script>
</html>